Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(edge-migrator): add call to migrate to v2 #4983

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

matthewelwell
Copy link
Contributor

Thanks for submitting a PR! Please check the boxes below:

  • I have added information to docs/ if required so people know about the feature!
  • I have filled in the "Changes" section below?
  • I have filled in the "How did you test this code" section below?
  • I have used a Conventional Commit title for this Pull Request

Changes

Creating a draft PR for now based on this Crisp chat. This needs more work, but this is a start.

How did you test this code?

Please describe.

Copy link

vercel bot commented Jan 9, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs ⬜️ Ignored (Inspect) Jan 9, 2025 2:43pm
flagsmith-frontend-preview ⬜️ Ignored (Inspect) Jan 9, 2025 2:43pm
flagsmith-frontend-staging ⬜️ Ignored (Inspect) Jan 9, 2025 2:43pm

@github-actions github-actions bot added api Issue related to the REST API fix labels Jan 9, 2025
Copy link
Contributor

github-actions bot commented Jan 9, 2025

Uffizzi Ephemeral Environment deployment-59710

☁️ https://app.uffizzi.com/github.com/Flagsmith/flagsmith/pull/4983

📄 View Application Logs etc.

What is Uffizzi? Learn more!

Copy link

codecov bot commented Jan 9, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.39%. Comparing base (2fe4e02) to head (83edd9a).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4983   +/-   ##
=======================================
  Coverage   97.39%   97.39%           
=======================================
  Files        1191     1191           
  Lines       41630    41632    +2     
=======================================
+ Hits        40546    40548    +2     
  Misses       1084     1084           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -81,4 +82,5 @@ def migrate(self):
)
)
identity_wrapper.write_identities(iterator_with_prefetch(identities))
migrate_project_environments_to_v2(project_id)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will need more work since it won't work unless we set the read capacity budget against the project. We should therefore just write the identity overrides directly to the flagsmith_environments_v2 table but this requires a larger refactor of the logic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api Issue related to the REST API fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant